package com.sname.car.record.service;

import com.sname.car.record.dao.RecordMapper;
import com.sname.car.record.entity.Record;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created By  醉美柳舞之众星捧月
 *
 * @author songx
 * @date 2018/9/26 13:59
 */
@Service
public class RecordServiceImpl implements RecordService {

    @Autowired
    private RecordMapper recordMapper;

    @Override
    public List<Record> listRecord(Long userId, Long lastId) {
        List<Record> list = recordMapper.selectRecord(userId, lastId);
        return list;
    }
}
